

#import <Foundation/Foundation.h>
#import <VideoToolbox/VideoToolbox.h>
#import <AVFoundation/AVSampleBufferDisplayLayer.h>


@protocol H264HwDecoderImplDelegate <NSObject>

- (void)displayDecodedFrame:(CVImageBufferRef )imageBuffer;

@end

@interface H264HwDecoderImpl : NSObject
@property (weak, nonatomic) id<H264HwDecoderImplDelegate> delegate;
//@property (assign, nonatomic) NSInteger tag;//区分解码器用的
-(void)decodeNalu:(uint8_t *)frame withSize:(uint32_t)frameSize;
-(void)decStop;
@end
